package com.brainhealth.customer.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.brainhealth.common.annotation.Excel;
import com.brainhealth.common.core.domain.BaseEntity;

/**
 * 积分记录对象 score_record
 * 
 * @author ruoyi
 * @date 2023-11-02
 */
public class ScoreRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 积分记录表主键 */
    private Long id;

    /** 积分记录ID */
    private Long recordId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long customerId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 课程编号 */
    @Excel(name = "课程编号")
    private Long countSort;

    /** 积分类型（0:完成训练 1:连续3天完成训练 2:邀请好友） */
    @Excel(name = "积分类型", readConverterExp = "0=:完成训练,1=:连续3天完成训练,2=:邀请好友")
    private Integer scoreType;

    /** 积分值 */
    @Excel(name = "积分值")
    private Long score;

    /** 积分描述 */
    @Excel(name = "积分描述")
    private String scoreDesc;

    /** 是否删除0:未删除 1：已删除 */
    @Excel(name = "是否删除0:未删除 1：已删除")
    private Integer yn;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updateUser;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public Long getRecordId() {
        return recordId;
    }

    public void setRecordId(Long recordId) {
        this.recordId = recordId;
    }

    public void setCustomerId(Long customerId)
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }
    public void setCountSort(Long countSort) 
    {
        this.countSort = countSort;
    }

    public Long getCountSort() 
    {
        return countSort;
    }
    public void setScoreType(Integer scoreType) 
    {
        this.scoreType = scoreType;
    }

    public Integer getScoreType() 
    {
        return scoreType;
    }

    public Long getScore() {
        return score;
    }

    public void setScore(Long score) {
        this.score = score;
    }

    public String getScoreDesc() {
        return scoreDesc;
    }

    public void setScoreDesc(String scoreDesc) {
        this.scoreDesc = scoreDesc;
    }

    public void setYn(Integer yn)
    {
        this.yn = yn;
    }

    public Integer getYn() 
    {
        return yn;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("recordId", getRecordId())
            .append("customerId", getCustomerId())
            .append("orderNo", getOrderNo())
            .append("countSort", getCountSort())
            .append("scoreType", getScoreType())
            .append("score", getScore())
            .append("scoreDesc", getScoreDesc())
            .append("yn", getYn())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
